package com.base.pd.agent;

public class AgentTwFTw extends Agent {

	private boolean previous=true;
	private boolean prePrevious=true;
	
	public AgentTwFTw() {
		super("Twists for Twats", "Batt");
	}

	@Override
	public boolean cooperate() {
		return prePrevious;
	}

	@Override
	public void update(int round, boolean myMove, boolean otherMove,
			int myScore, int otherScore) {
		prePrevious = previous;
		previous = otherMove;
		
	}

	@Override
	public void init() {		
		previous = true;
		prePrevious = true;
	}

}
